What is the purpose of this function? Explain what it does, and justify it's place in the program. This section will appear in the Technical Documentation, so try to be complete.
Syntax
type function_name(args)
Usage
When and how should this function be called? Use examples where necessary.
Input Arguments
void. This function takes no arguments.
int example. A value that is used by the function.
char* string. A string that will be transmitted to the serial transmit.
Output Arguments
None. This function does not make changes to any existing values.
int* status. The program will modify the non-local value status if it has an error.
Return Value
int. When the operation successfully, a 1 is returned. Otherwise, a 0 is returned.
Settings and Registers
Read
int Settings.speech_mute. Needed to see if the string should be spoken.
PORTA <0-4>: Please add the names of the registers you use to the "tags" of this page for indexing purposes.
PIE1<3>
Write
int Settings.current_state. The program will change the operating state of the program.
INTCON1
Operation
Describe in very general terms how the function fulfills it's purpose. This should be reflected in the code.
Code
void low_ISR(void){/*All interrupts will check the mask (PIE)
before checking the request (PIR)*///Disable ONLY LOW interrupts
INTCONbits.GIEL=0;//Check for transmit empty intif(PIE1bits.TXIE==1&& PIR1bits.TXIF==1){
transchar();}// if(PIE1bits.ADIE == 1 && PIR1bits.ADIF == 1)// {// get_AD_value();// }
INTCONbits.GIEL=1;// _asm retfie _endasm}
function_name
Owner: YouPurpose and Documentation
What is the purpose of this function? Explain what it does, and justify it's place in the program. This section will appear in the Technical Documentation, so try to be complete.Syntax
type function_name(args)Usage
When and how should this function be called? Use examples where necessary.Input Arguments
Output Arguments
Return Value
Settings and Registers
Read
Write
Operation
Describe in very general terms how the function fulfills it's purpose. This should be reflected in the code.Code